﻿using System.Data;

namespace SimpleORM
{
    public static class DataReaderExtension
    {
        #region Methods

        public static bool IsDBNull(this IDataReader source, string columnName)
        {
            int index = source.GetOrdinal(columnName);
            return source.IsDBNull(index);
        }

        #endregion
    }
}